package com.cowain.monitor.dao;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.cowain.monitor.entity.ErpShipEntity;
import com.cowain.monitor.entity.PmsDeliveryNoticeEntity;
import com.cowain.monitor.entity.PmsShipmentStatusEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * PMS ehr-backend
 *
 * @Classname PmsShipmentStatusDao
 * @Description TODO 出货状态记录
 * @Date 2020-07-28 16:43
 * @Created 沈科举
 */
@Mapper
public interface PmsShipmentStatusDao extends BaseMapper<ErpShipEntity> {
    /**
     * 查询所有未读的数据
     * @param pageIndex
     * @return
     */
    List<ErpShipEntity> findErpShipEntityByIsdel(@Param("pageIndex") Integer pageIndex);


    int findTotalCount();

    /**
     * 添加到出货信息表
     * @param pmsDeliveryNoticeEntity
     * @return
     */
    int addPmsDeliveryNotice(List<PmsDeliveryNoticeEntity> pmsDeliveryNoticeEntity);

    /**
     * 添加到出货状态表内
     * @param pmsShipmentStatusEntity
     * @return
     */
    int  addPmsShipmentStatus(List<PmsShipmentStatusEntity> pmsShipmentStatusEntity);

    /**
     * 修改已读状态
     * @param erpShipEntity
     * @return
     */
    int updateErpShipIsdel(ErpShipEntity erpShipEntity);





}
